package org.zjl.action;

import com.baidubce.BceClientConfiguration;
import com.baidubce.auth.DefaultBceCredentials;
import com.baidubce.services.lss.LssClient;
import com.baidubce.services.lss.model.PauseDomainStreamRequest;

public class Test {
    public static void main(String[] args) {

        BceClientConfiguration bceClientConfiguration = new BceClientConfiguration();
        bceClientConfiguration.setCredentials(new DefaultBceCredentials("xx","xx"));
        LssClient lssClient = new LssClient(bceClientConfiguration);

        PauseDomainStreamRequest pauseRequest = new PauseDomainStreamRequest();
        pauseRequest.withDomain("pushdomain").withApp("appname").withStream("streamid");
        lssClient.pauseDomainStream(pauseRequest);




    }
}
